package com.qf.kady.ssm.controller;

import com.qf.kady.ssm.entity.ResultVO;
import com.qf.kady.ssm.pojo.User;
import com.qf.kady.ssm.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

/**
 * \* Created with IntelliJ IDEA.
 * \* User: kady
 * \* Date: 2021/4/21
 * \* Time: 11:50
 * \* 千峰JAVA2101班
 * \* Description: 登录控制层
 * \
 */

@Controller
@Slf4j
public class LoginController {

    @Autowired
    private UserService userService;

    @GetMapping({"/","/toLogin","/login.html"})
    public ModelAndView toLogin(){
        ModelAndView mav = new ModelAndView();
        mav.setViewName("index");
        return mav;
    }

}
